package demo.hms.liverecords.contoller;

import demo.hms.liverecords.service.LiveRecordsService;
import demo.hms.mybatis.entity.LiveRecords;
import demo.hms.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/liveRecords")
public class LiveRecordsController {
    @Resource
    private LiveRecordsService service;

    @RequestMapping(value = "/queryAll", method = RequestMethod.GET)
    public Result queryAll(LiveRecords liveRecords){
        return service.queryAll(liveRecords);

    }

}
